package com.smarthome.common.httpwapper;

import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;


public class TrustAllCertManager implements X509TrustManager {

    @Override
    public void checkClientTrusted(X509Certificate[] chain, String authType)
            throws CertificateException {
        // 忽略，信任所有
    }

    @Override
    public void checkServerTrusted(X509Certificate[] chain, String authType)
            throws CertificateException {
        // 忽略，信任所有
    }

    @Override
    public X509Certificate[] getAcceptedIssuers() {
         // 忽略，信任所有
        return null;
    }

}
